{{ content() }}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>{{ title }}</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link" href="{{ url('promotional/index') }}">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal" enctype="multipart/form-data">
                        {{ form.render('des',['class':'form-control','placeholder':'描述']) }}
                        <div class="hr-line-dashed"></div>
                        {{ form.render('src',['class':'form-control','placeholder':'路径']) }}
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-md-2"></div>
                            <div class="thumbnail col-md-8">
                                {{  image('uploads/promotional/'~form.getValue('src'))}}
                            </div>
                            <div class="col-md-2"></div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>